/**
* Copyright (C) 2018-2020
* All rights reserved, Designed By www.yixiang.co
* 注意：
* 本软件为www.yixiang.co开发研制，未经购买不得使用
* 购买后可获得全部源代码（禁止转卖、分享、上传到码云、github等开源平台）
* 一经发现盗用、分享等行为，将追究法律责任，后果自负
*/
package co.yixiang.modules.auction.service;
import co.yixiang.api.ApiResult;
import co.yixiang.common.service.BaseService;
import co.yixiang.modules.auction.domain.YxAuctionRecord;
import co.yixiang.modules.auction.service.dto.YxAuctionConfigDto;
import co.yixiang.modules.auction.service.dto.YxAuctionRecordDto;
import co.yixiang.modules.auction.service.dto.YxAuctionRecordQueryCriteria;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @author hupeng
* @date 2020-09-15
*/
public interface YxAuctionRecordService  extends BaseService<YxAuctionRecord>{

/**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(YxAuctionRecordQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<YxAuctionRecordDto>
    */
    List<YxAuctionRecord> queryAll(YxAuctionRecordQueryCriteria criteria);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<YxAuctionRecordDto> all, HttpServletResponse response) throws IOException;

    ApiResult<List<YxAuctionConfigDto>> findProductExample();

    Page<YxAuctionRecordDto> getYxAuctionProductPageList(int page, int limit,String searchName, long time);

    Page<YxAuctionRecordDto> getYxAuctionProductPageLists(int page, int limit,Integer isBuy, long time);

    YxAuctionRecordDto getYxAuctionProductDetail(Long uid,Long id);

    Page<YxAuctionRecordDto> orderPage(Long uid, Integer type,int page, int limit);

    YxAuctionRecordDto productReocrdDetail(Long uid, Long valueOf);

    ApiResult<Object> confirmPay(Long uid, Long valueOf);

    List<YxAuctionRecord> selectNoBuy();

    String getStartTime(Long valueOf);
}
